cmake_minimum_required(VERSION 3.18)
project(TEST C CXX )

set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined -Wl,-gc-sections")
add_compile_options(-fvisibility=hidden -ffunction-sections)
add_library(sub SHARED a.cc)

